package net.yondervision.hrfsp.sdk.esign.domain;

import java.util.Objects;
import lombok.Data;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/09/26 21:11
 */
@Data
public abstract class AbstractESignResponse {

  /**
   * 业务码，0表示成功
   */
  private String code;
  /**
   * 业务信息
   */
  private String message;
  /**
   * 信息
   */
  private String data;

  public final boolean successful() {
    return Objects.equals(this.code, "0");
  }

}
